import request from "@/utils/request";

//查询所有科
export function familyAll() {
  return request({
    url: "/plant/family/familyAll",
    method: "GET"
  });
}

//查询单个科目信息
export function familyOne(family) {
  return request({
    url: "/plant/family/familyOne",
    method: "GET",
    params: family
  });
}

//根据科目名
export function familyByName(name) {
  return request({
    url: "/plant/family/familyByName",
    method: "GET",
    params: { familyName: name }
  });
}
